﻿#if NETCore
using Microsoft.AspNetCore.Mvc;

namespace Longbow.Web.Controller
{
    [ApiController]
    [Route("api/[controller]")]
    public class ValuesController : ControllerBase
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="value"></param>
        [HttpPost]
        public bool Post([FromBody]LgbHttpClientTestOption value)
        {
            return value.Enabled;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="value"></param>
        [HttpPut]
        public bool Put([FromBody]LgbHttpClientTestOption value)
        {
            return value.Enabled;
        }
    }
}
#endif